﻿<!DOCTYPE html>
<html>
     <head>
          <meta charset="UTF-8">
          <title></title>
     </head>
		<script>
			var str = "helloworld!";
			str[11] = "x"; //不可以追加内容
			console.log(str.concat("mm"));
			
			for(var i=0; i<str.length; i++){
				//console.log( str[i] );
			}
			
			for(var i in str){
				console.log(str[i]);
			}
			
			var stu = {
				sno : 250,
				age : 250,
				sex : "男"
			}
			
			for(var prop in stu){
				console.log( stu[prop] );
			}
			
			//stu.sno
			//stu.age
			console.log( stu["sex"] );
			stu.school = "千锋";
			var abc = "school";
			
			stu[abc] = "千锋";
			
			
			
		</script>
     <body>
     </body>
</html>
